#include "main.h"

#define 	UART_BAUD_RATE 			(115200)

#define 	LOOP_DELAY_TIME			(0xFFFF)

#define 	_EXAMPLE_START_INT_		(1000000)
#define		_EXAMPLE_END_INT_		(9999999)

#define 	LOOP_DELAY_FUNCTION()	_delay_ms(LOOP_DELAY_TIME)

int main(void)
{
	uart_init(UART_BAUD_SELECT(UART_BAUD_RATE,F_CPU));
	sei();

	uart_puts_P("\n\r\n\rUART Extended Commands Loaded...\n\r");

    for(;;)
    {
    	for (uint32_t i = _EXAMPLE_START_INT_; i < _EXAMPLE_END_INT_; i++) {
			uart_puts("\n\r =======================================\n\r|\n\r| \t   i = ");
			uart_putint_long(i);

			uart_puts("\n\r| ");

			uart_puts("\n\r|   PUTINT_LONG:\t");
			uart_putint_long(i);

			uart_puts("\n\r|   PUTINT_LONG_F:\t");
			uart_putint_long_f(i);

			uart_puts("\n\r|   PUTHEX_LONG:\t");
			uart_puthex_long(i);

			uart_puts("\n\r|   PUTBIN_BYTE:\t");
			uart_putbin_long(i);

			uart_puts("\n\r|");
			LOOP_DELAY_FUNCTION();
		}
    }

    return main();
}



